package cn.guxinhu.billsystem.user.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Guxinhu
 * @create 2021-06-27 14:40
 */
@Controller
@RequestMapping("/user")
public class UserAjxaToUrlController {

    @RequestMapping("/main")
    // 去往 login.html
    public String main1() {
        return "user/login";
    }

    @RequestMapping("/user/add")
    // 去往 add.html
    public String main2() {
        return "/user/add";
    }

    @RequestMapping("/user/show")
    // 去往 main.html
    public String main3() {
        return "/user/main";
    }
}
